/**
 * MD5加密
 */
public class EncryPassWord {

    public static String encryPoint(String username,String password){
        // 加密方式
        String hashAlgorithName = "MD5";
        // 加密次数
        int hashIterations = 1024;
        ByteSource credentialsSalt = ByteSource.Util.bytes(username);
        Object obj = new SimpleHash(hashAlgorithName, password,
                credentialsSalt, hashIterations);
       return obj.toString();
    }
}